package com.zhxy.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhxy.pojo.Student;

import java.sql.SQLException;

public interface StudentService extends IService<Student> {
    /**
     * 分页查询
     * @param pageNum  当前页数
     * @param pageSize  页容量
     * @param student   查询条件
     * @return
     * @throws Exception
     */
    Page<Student> selectByPage(Long pageNum, Long pageSize,Student student) throws Exception;

    /**
     * 增加学生功能
     * @param student
     * @return
     * @throws SQLException
     */
    int addStudent(Student student) throws SQLException;
    /**
     * 修改功能
     */
    int update(Student student) throws SQLException;


}
